xen/evtchn: restrict the maximum number of evtchn supported for domUs
authorRahul Singh <rahul.singh@arm.com>
Wed, 7 Sep 2022 16:27:34 +0000 (17:27 +0100)
committerJulien Grall <jgrall@amazon.com>
Thu, 8 Sep 2022 11:21:58 +0000 (12:21 +0100)
commit0a8ef2fa450aa9673dd2e0d25bb16931aea2bf1e
treeb1b8c677f810338c8897f86b1120bbeea67bba5a
parent4e1eade78ef3f339ed671851abce398e80ba04ca
xen/evtchn: restrict the maximum number of evtchn supported for domUs

Restrict the maximum number of evtchn supported for domUs to avoid
allocating a large amount of memory in Xen.

Set the default value of max_evtchn_port to 1023. The value of 1023
should be sufficient for guests because on ARM we don't bind physical
interrupts to event channels. The only use of the evtchn port is
inter-domain communications. Another reason why we choose the value
of 1023 is to follow the default behavior of libxl.

Signed-off-by: Rahul Singh <rahul.singh@arm.com>
Reviewed-by: Michal Orzel <michal.orzel@amd.com>
Acked-by: Julien Grall <jgrall@amazon.com>
xen/arch/arm/domain_build.c